import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token';

const TenantIdKey = 'Admin-TenantId';

const UserIdKey = 'Admin-UserId';

const UserNameKey = 'Admin-UserName';

const AccountKey = 'Admin-Account';

const PasswordKey = 'Admin-Password';

const BranchCampusId = 'Branch-CampusId';

const BranchCampusName = 'Branch-CampusName';

const LogoUrl = 'logo-url';

const PayUrl = 'pay-url';

export function getToken() {
  return Cookies.get(TokenKey);
}

export function setToken(token) {
  return Cookies.set(TokenKey, token);
}

export function getPayUrl() {
  return Cookies.get(PayUrl);
}

export function setPayUrl(payUrl) {
  return Cookies.set(PayUrl, payUrl);
}

export function getTenantId() {
  return Cookies.get(TenantIdKey);
}

export function setTenantId(tenantId) {
  return Cookies.set(TenantIdKey, tenantId);
}

export function getUserId() {
  return Cookies.get(UserIdKey);
}

export function setUserId(userId) {
  return Cookies.set(UserIdKey, userId);
}

export function getUserName() {
  return Cookies.get(UserNameKey);
}

export function setUserName(userName) {
  return Cookies.set(UserNameKey, userName);
}

export function getAccount() {
  return Cookies.get(AccountKey);
}

export function setAccount(account) {
  return Cookies.set(AccountKey, account);
}

export function getPassword() {
  return Cookies.get(PasswordKey);
}

export function setPassword(password) {
  return Cookies.set(PasswordKey, password);
}

export function getBranchCampusId() {
  return Cookies.get(BranchCampusId);
}

export function setBranchCampusId(branchCampusId) {
  return Cookies.set(BranchCampusId, branchCampusId);
}

export function getBranchCampusName() {
  return Cookies.get(BranchCampusName);
}

export function setBranchCampusName(branchCampusName) {
  return Cookies.set(BranchCampusName, branchCampusName);
}

export function getLogoUrl() {
  return Cookies.get(LogoUrl);
}

export function setLogoUrl(logoUrl) {
  return Cookies.set(LogoUrl, logoUrl);
}

export function removeToken() {
  return Cookies.remove(TokenKey);
}
